!function(t){var a=function(){t("img[data-recalc-dims]").each(function a(){var o=t(this);if(this.complete){if(o.data("lazy-src")&&o.attr("src")!==o.data("lazy-src"))return void o.load(a);var d=this.width,i=this.height;d&&d>0&&i&&i>0&&(o.attr({width:d,height:i}),e(this))}else o.load(a)})},e=function(a){t(a).removeAttr("data-recalc-dims").removeAttr("scale")};t(document).ready(a),"on"in t.fn?t(document.body).on("post-load",a):t(document).delegate("body","post-load",a)}(jQuery); !function(t){function e(){var t=location.href;return hashtag=-1!==t.indexOf("#prettyPhoto")&&decodeURI(t.substring(t.indexOf("#prettyPhoto")+1,t.length)),hashtag&&(hashtag=hashtag.replace(/<|>/g,"")),hashtag}function i(){"undefined"!=typeof theRel&&(location.hash=theRel+"/"+rel_index+"/")}function o(){-1!==location.href.indexOf("#prettyPhoto")&&(location.hash="prettyPhoto")}function a(t,e){var i="[\\?&]"+(t=t.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]"))+"=([^&#]*)",o=new RegExp(i).exec(e);return null==o?"":o[1]}t.prettyPhoto={version:"3.1.6"},t.fn.prettyPhoto=function(p){function s(t,e,i,o){var a=0,p=0;return i>o?(p=t,a=Math.round(o*t/i)):(p=Math.round(i*e/o),a=e),d(p,a)}function n(){t(".pp_loaderIcon").hide(),projectedTop=scroll_pos.scrollTop+(z/2-v.containerHeight/2),projectedTop<0&&(projectedTop=0),$ppt.fadeTo(settings.animation_speed,1),$pp_pic_holder.find(".pp_content").animate({height:v.contentHeight,width:v.contentWidth},settings.animation_speed),$pp_pic_holder.animate({top:projectedTop,left:M/2-v.containerWidth/2<0?0:M/2-v.containerWidth/2,width:v.containerWidth},settings.animation_speed,function(){$pp_pic_holder.find(".pp_hoverContainer,#fullResImage").height(v.height).width(v.width),$pp_pic_holder.find(".pp_fade").fadeIn(settings.animation_speed),isSet&&"image"==c(pp_images[set_position])?$pp_pic_holder.find(".pp_hoverContainer").show():$pp_pic_holder.find(".pp_hoverContainer").hide(),settings.allow_expand&&(v.resized?t("a.pp_expand,a.pp_contract").show():t("a.pp_expand").hide()),!settings.autoplay_slideshow||x||y||t.prettyPhoto.startSlideshow(),settings.changepicturecallback(),y=!0}),u(),p.ajaxcallback()}function r(e){$pp_pic_holder.find("#pp_full_res object,#pp_full_res embed").css("visibility","hidden"),$pp_pic_holder.find(".pp_fade").fadeOut(settings.animation_speed,function(){t(".pp_loaderIcon").show(),e()})}function l(e){e>1?t(".pp_nav").show():t(".pp_nav").hide()}function d(t,e){if(resized=!1,h(t,e),imageWidth=t,imageHeight=e,(P>M||k>z)&&doresize&&settings.allow_resize&&!I){for(resized=!0,fitting=!1;!fitting;)P>M?(imageWidth=M-200,imageHeight=e/t*imageWidth):k>z?(imageHeight=z-200,imageWidth=t/e*imageHeight):fitting=!0,k=imageHeight,P=imageWidth;(P>M||k>z)&&d(P,k),h(imageWidth,imageHeight)}return{width:Math.floor(imageWidth),height:Math.floor(imageHeight),containerHeight:Math.floor(k),containerWidth:Math.floor(P)+2*settings.horizontal_padding,contentHeight:Math.floor(w),contentWidth:Math.floor(b),resized:resized}}function h(e,i){e=parseFloat(e),i=parseFloat(i),$pp_details=$pp_pic_holder.find(".pp_details"),$pp_details.width(e),detailsHeight=parseFloat($pp_details.css("marginTop"))+parseFloat($pp_details.css("marginBottom")),$pp_details=$pp_details.clone().addClass(settings.theme).width(e).appendTo(t("body")).css({position:"absolute",top:-1e4}),detailsHeight+=$pp_details.height(),detailsHeight=detailsHeight<=34?36:detailsHeight,$pp_details.remove(),$pp_title=$pp_pic_holder.find(".ppt"),$pp_title.width(e),titleHeight=parseFloat($pp_title.css("marginTop"))+parseFloat($pp_title.css("marginBottom")),$pp_title=$pp_title.clone().appendTo(t("body")).css({position:"absolute",top:-1e4}),titleHeight+=$pp_title.height(),$pp_title.remove(),w=i+detailsHeight,b=e,k=w+titleHeight+$pp_pic_holder.find(".pp_top").height()+$pp_pic_holder.find(".pp_bottom").height(),P=e}function c(t){return t.match(/youtube\.com\/watch/i)||t.match(/youtu\.be/i)?"youtube":t.match(/vimeo\.com/i)?"vimeo":t.match(/\b.mov\b/i)?"quicktime":t.match(/\b.swf\b/i)?"flash":t.match(/\biframe=true\b/i)?"iframe":t.match(/\bajax=true\b/i)?"ajax":t.match(/\bcustom=true\b/i)?"custom":"#"==t.substr(0,1)?"inline":"image"}function _(){if(doresize&&"undefined"!=typeof $pp_pic_holder){if(scroll_pos=g(),contentHeight=$pp_pic_holder.height(),contentwidth=$pp_pic_holder.width(),projectedTop=z/2+scroll_pos.scrollTop-contentHeight/2,projectedTop<0&&(projectedTop=0),contentHeight>z)return;$pp_pic_holder.css({top:projectedTop,left:M/2+scroll_pos.scrollLeft-contentwidth/2})}}function g(){return self.pageYOffset?{scrollTop:self.pageYOffset,scrollLeft:self.pageXOffset}:document.documentElement&&document.documentElement.scrollTop?{scrollTop:document.documentElement.scrollTop,scrollLeft:document.documentElement.scrollLeft}:document.body?{scrollTop:document.body.scrollTop,scrollLeft:document.body.scrollLeft}:void 0}function m(){z=t(window).height(),M=t(window).width(),"undefined"!=typeof $pp_overlay&&$pp_overlay.height(t(document).height()).width(M)}function u(){isSet&&settings.overlay_gallery&&"image"==c(pp_images[set_position])?(itemWidth=57,navWidth="facebook"==settings.theme||"pp_default"==settings.theme?50:30,itemsPerPage=Math.floor((v.containerWidth-100-navWidth)/itemWidth),itemsPerPage=itemsPerPage";toInject=settings.gallery_markup.replace(/{gallery}/g,toInject),$pp_pic_holder.find("#pp_full_res").after(toInject),$pp_gallery=t(".pp_pic_holder .pp_gallery"),$pp_gallery_li=$pp_gallery.find("li"),$pp_gallery.find(".pp_arrow_next").click(function(){return t.prettyPhoto.changeGalleryPage("next"),t.prettyPhoto.stopSlideshow(),!1}),$pp_gallery.find(".pp_arrow_previous").click(function(){return t.prettyPhoto.changeGalleryPage("previous"),t.prettyPhoto.stopSlideshow(),!1}),$pp_pic_holder.find(".pp_content").hover(function(){$pp_pic_holder.find(".pp_gallery:not(.disabled)").fadeIn()},function(){$pp_pic_holder.find(".pp_gallery:not(.disabled)").fadeOut()}),itemWidth=57,$pp_gallery_li.each(function(e){t(this).find("a").click(function(){return t.prettyPhoto.changePage(e),t.prettyPhoto.stopSlideshow(),!1})})}settings.slideshow&&($pp_pic_holder.find(".pp_nav").prepend('Play'),$pp_pic_holder.find(".pp_nav .pp_play").click(function(){return t.prettyPhoto.startSlideshow(),!1})),$pp_pic_holder.attr("class","pp_pic_holder "+settings.theme),$pp_overlay.css({opacity:0,height:t(document).height(),width:t(window).width()}).bind("click",function(){settings.modal||t.prettyPhoto.close()}),t("a.pp_close").bind("click",function(){return t.prettyPhoto.close(),!1}),settings.allow_expand&&t("a.pp_expand").bind("click",function(e){return t(this).hasClass("pp_expand")?(t(this).removeClass("pp_expand").addClass("pp_contract"),doresize=!1):(t(this).removeClass("pp_contract").addClass("pp_expand"),doresize=!0),r(function(){t.prettyPhoto.open()}),!1}),$pp_pic_holder.find(".pp_previous, .pp_nav .pp_arrow_previous").bind("click",function(){return t.prettyPhoto.changePage("previous"),t.prettyPhoto.stopSlideshow(),!1}),$pp_pic_holder.find(".pp_next, .pp_nav .pp_arrow_next").bind("click",function(){return t.prettyPhoto.changePage("next"),t.prettyPhoto.stopSlideshow(),!1}),_()}p=jQuery.extend({hook:"rel",animation_speed:"fast",ajaxcallback:function(){},slideshow:5e3,autoplay_slideshow:!1,opacity:.8,show_title:!0,allow_resize:!0,allow_expand:!0,default_width:500,default_height:344,counter_separator_label:"/",theme:"pp_default",horizontal_padding:20,hideflash:!1,wmode:"opaque",autoplay:!0,modal:!1,deeplinking:!0,overlay_gallery:!0,overlay_gallery_max:30,keyboard_shortcuts:!0,changepicturecallback:function(){},callback:function(){},ie6_fallback:!0,markup:'
\t\t\t\t\t\t
 
\t\t\t\t\t\t
\t\t\t\t\t\t\t
\t\t\t\t\t\t\t
\t\t\t\t\t\t\t
\t\t\t\t\t\t
\t\t\t\t\t\t
\t\t\t\t\t\t\t
\t\t\t\t\t\t\t
\t\t\t\t\t\t\t\t
\t\t\t\t\t\t\t\t\t
\t\t\t\t\t\t\t\t\t
\t\t\t\t\t\t\t\t\t\tExpand \t\t\t\t\t\t\t\t\t\t
\t\t\t\t\t\t\t\t\t\t\tnext \t\t\t\t\t\t\t\t\t\t\tprevious \t\t\t\t\t\t\t\t\t\t
\t\t\t\t\t\t\t\t\t\t
\t\t\t\t\t\t\t\t\t\t
\t\t\t\t\t\t\t\t\t\t\t
\t\t\t\t\t\t\t\t\t\t\t\tPrevious \t\t\t\t\t\t\t\t\t\t\t\t

0/0

\t\t\t\t\t\t\t\t\t\t\t\tNext \t\t\t\t\t\t\t\t\t\t\t
\t\t\t\t\t\t\t\t\t\t\t

\t\t\t\t\t\t\t\t\t\t\t
{pp_social}
\t\t\t\t\t\t\t\t\t\t\tClose \t\t\t\t\t\t\t\t\t\t
\t\t\t\t\t\t\t\t\t
\t\t\t\t\t\t\t\t
\t\t\t\t\t\t\t
\t\t\t\t\t\t\t
\t\t\t\t\t\t
\t\t\t\t\t\t
\t\t\t\t\t\t\t
\t\t\t\t\t\t\t
\t\t\t\t\t\t\t
\t\t\t\t\t\t
\t\t\t\t\t
\t\t\t\t\t
',gallery_markup:'',image_markup:'',flash_markup:'',quicktime_markup:'',iframe_markup:'',inline_markup:'
{content}
',custom_markup:"",social_tools:'
':''), ie6_fallback: true, changepicturecallback: function (){ if(view_disabled){ view_disabled=false; return; } last_image=$('#pp_full_res').find('img').attr('src'); rl_view_image(script, last_image); if(args.allowExpand==='1'){ $('a.pp_expand').on('click', function (){ view_disabled=true; }); }}, callback: function (){ rl_hide_image(script, last_image); }}); break; case 'fancybox': var last_image=''; $('a[rel*="' + selector + '"], a[data-rel*="' + selector + '"]').fancybox({ modal:(args.modal==='1' ? true:false), overlayShow:(args.showOverlay==='1' ? true:false), showCloseButton:(args.showCloseButton==='1' ? true:false), enableEscapeButton:(args.enableEscapeButton==='1' ? true:false), hideOnOverlayClick:(args.hideOnOverlayClick==='1' ? true:false), hideOnContentClick:(args.hideOnContentClick==='1' ? true:false), cyclic:(args.cyclic==='1' ? true:false), showNavArrows:(args.showNavArrows==='1' ? true:false), autoScale:(args.autoScale==='1' ? true:false), scrolling: args.scrolling, centerOnScroll:(args.centerOnScroll==='1' ? true:false), opacity:(args.opacity==='1' ? true:false), overlayOpacity: parseFloat(args.overlayOpacity / 100), overlayColor: args.overlayColor, titleShow:(args.titleShow==='1' ? true:false), titlePosition: args.titlePosition, transitionIn: args.transitions, transitionOut: args.transitions, easingIn: args.easings, easingOut: args.easings, speedIn: parseInt(args.speeds), speedOut: parseInt(args.speeds), changeSpeed: parseInt(args.changeSpeed), changeFade: parseInt(args.changeFade), padding: parseInt(args.padding), margin: parseInt(args.margin), width: parseInt(args.videoWidth), height: parseInt(args.videoHeight), onComplete: function (){ last_image=$('#fancybox-content').find('img').attr('src'); rl_view_image(script, last_image); }, onClosed: function (){ rl_hide_image(script, last_image); }}); break; case 'nivo': $.each($('a[rel*="' + selector + '"], a[data-rel*="' + selector + '"]'), function (){ var attr=$(this).attr('data-rel'); if(typeof attr==='undefined'||attr==false){ attr=$(this).attr('rel'); } if(typeof attr!=='undefined'&&attr!==false){ var match=attr.match(new RegExp(selector + '\\-(gallery\\-(?:[\\da-z]{1,4}))', 'ig')); if(match!==null){ $(this).attr('data-lightbox-gallery', match[0]); }} }); var observer_initialized=false, change_allowed=true, last_image=''; $('a[rel*="' + selector + '"], a[data-rel*="' + selector + '"]').nivoLightbox({ effect: args.effect, clickOverlayToClose:(args.clickOverlayToClose==='1' ? true:false), keyboardNav:(args.keyboardNav==='1' ? true:false), errorMessage: args.errorMessage, afterShowLightbox: function(lightbox){ var content=$(lightbox)[0].find('.nivo-lightbox-content'); if(!observer_initialized){ observer_initialized=true; observe_script_dom(document.getElementsByClassName('nivo-lightbox-content')[0], true, function (){ if(change_allowed){ last_image=content.find('.nivo-lightbox-image img').attr('src'); rl_view_image(script, last_image); change_allowed=false; }}); }}, afterHideLightbox: function (){ change_allowed=true; rl_hide_image(script, last_image); }, onPrev: function(element){ change_allowed=false; last_image=element[0].attr('href'); rl_view_image(script, last_image); }, onNext: function(element){ change_allowed=false; last_image=element[0].attr('href'); rl_view_image(script, last_image); }}); break; case 'imagelightbox': var selectors=[ ], last_image=''; $('a[rel*="' + selector + '"], a[data-rel*="' + selector + '"]').each(function(i, item){ var attr=$(item).attr('data-rel'); if(typeof attr!=='undefined'&&attr!==false&&attr!=='norl') selectors.push(attr); else { attr=$(item).attr('rel'); if(typeof attr!=='undefined'&&attr!==false&&attr!=='norl') selectors.push(attr); }}); if(selectors.length > 0){ selectors=$.unique(selectors); $(selectors).each(function(i, item){ if(typeof event.pagination_type!=='undefined'){ $('a[data-rel="' + item + '"], a[rel="' + item + '"]').each(function(){ $(this).off('click.imageLightbox'); }); } $('a[data-rel="' + item + '"], a[rel="' + item + '"]').imageLightbox({ animationSpeed: parseInt(args.animationSpeed), preloadNext:(args.preloadNext==='1' ? true:false), enableKeyboard:(args.enableKeyboard==='1' ? true:false), quitOnEnd:(args.quitOnEnd==='1' ? true:false), quitOnImgClick:(args.quitOnImageClick==='1' ? true:false), quitOnDocClick:(args.quitOnDocumentClick==='1' ? true:false), onLoadEnd: function (){ last_image=$('#imagelightbox').attr('src'); rl_view_image(script, last_image); }, onEnd: function (){ rl_hide_image(script, last_image); }}); }); } break; case 'tosrus': var selectors=[ ], last_image=''; $('a[rel*="' + selector + '"], a[data-rel*="' + selector + '"]').each(function(i, item){ var attr=$(item).attr('data-rel'); if(typeof attr!=='undefined'&&attr!==false&&attr!=='norl') selectors.push(attr); else { attr=$(item).attr('rel'); if(typeof attr!=='undefined'&&attr!==false&&attr!=='norl') selectors.push(attr); }}); if(selectors.length > 0){ selectors=$.unique(selectors); $(selectors).each(function(i, item){ if(typeof event.pagination_type!=='undefined'){ $('body').find('.tosrus-' + item).remove(); $('a[data-rel="' + item + '"], a[rel="' + item + '"]').each(function(){ $(this).off('click.tos'); }); } var tos=$('a[data-rel="' + item + '"], a[rel="' + item + '"]').tosrus({ infinite:(args.infinite==='1' ? true:false), autoplay: { play:(args.autoplay==='1' ? true:false), pauseOnHover:(args.pauseOnHover==='1' ? true:false), timeout: args.timeout }, effect: args.effect, keys: { prev:(args.keys==='1' ? true:false), next:(args.keys==='1' ? true:false), close:(args.keys==='1' ? true:false) }, pagination: { add:(args.pagination==='1' ? true:false), type: args.paginationType }, show: false, buttons: true, caption: { add: true, attributes: [ "title" ] }, wrapper: { classes: 'tosrus-' + item, onClick: args.closeOnClick==='1' ? 'close':'toggleUI' }}); tos.bind('sliding.tos', function(event, number){ last_image=$($(event.target).find('.tos-slider .tos-slide')[number]).find('img').attr('src'); rl_view_image(script, last_image); }); tos.bind('closing.tos', function (){ rl_hide_image(script, last_image); }); }); } break; case 'featherlight': var selectors=[ ], last_image=''; $('a[rel*="' + selector + '"], a[data-rel*="' + selector + '"]').each(function(i, item){ var attr=$(item).attr('data-rel'); if(typeof attr!=='undefined'&&attr!==false&&attr!=='norl') selectors.push(attr); else { attr=$(item).attr('rel'); if(typeof attr!=='undefined'&&attr!==false&&attr!=='norl') selectors.push(attr); }}); if(selectors.length > 0){ selectors=$.unique(selectors); $.extend($.featherlight.defaults, { openSpeed: parseInt(args.openSpeed), closeSpeed: parseInt(args.closeSpeed), closeOnClick: args.closeOnClick, closeOnEsc:(args.closeOnEsc==='1' ? true:false), afterOpen: function(event){ last_image=event.currentTarget.href; rl_view_image(script, last_image); }, afterClose: function (){ rl_hide_image(script, last_image); }}); $(selectors).each(function(i, item){ if(typeof event.pagination_type!=='undefined'){ $('a[data-rel="' + item + '"], a[rel="' + item + '"]').each(function(){ $(this).off('click.featherlight'); }); } if(/-gallery-/.test(item)){ $('a[data-rel="' + item + '"], a[rel="' + item + '"]').featherlightGallery({ galleryFadeIn: parseInt(args.galleryFadeIn), galleryFadeOut: parseInt(args.galleryFadeOut), previousIcon: '❮', nextIcon: '❯' }); }else if(/-video-/.test(item)){ $('a[data-rel="' + item + '"], a[rel="' + item + '"]').featherlight(); }else{ $('a[data-rel="' + item + '"], a[rel="' + item + '"]').featherlight(); }}); } break; case 'magnific': var selectors=[ ], last_image=''; $('a[rel*="' + selector + '"], a[data-rel*="' + selector + '"]').each(function(i, item){ var attr=$(item).attr('data-rel'); if(typeof attr!=='undefined'&&attr!==false&&attr!=='norl') selectors.push(attr); else { attr=$(item).attr('rel'); if(typeof attr!=='undefined'&&attr!==false&&attr!=='norl') selectors.push(attr); }}); if(selectors.length > 0){ selectors=$.unique(selectors); $(selectors).each(function(i, item){ var subselector=$('a[data-rel="' + item + '"], a[rel="' + item + '"]'), element=$(subselector[0]), media_type=element.data('magnific_type'), content_type=element.data('rl_content'); if(typeof content_type!=='undefined'){ media_type=content_type; } if(typeof media_type==='undefined'){ media_type='image'; } subselector.magnificPopup({ type: media_type==='gallery' ? 'image':(media_type==='video' ? 'iframe':media_type), disableOn: args.disableOn, midClick: args.midClick==='1', preloader: args.preloader==='1', closeOnContentClick: args.closeOnContentClick==='1', closeOnBgClick: args.closeOnBgClick==='1', closeBtnInside: args.closeBtnInside==='1', showCloseBtn: args.showCloseBtn==='1', enableEscapeKey: args.enableEscapeKey==='1', alignTop: args.alignTop==='1', autoFocusLast: args.autoFocusLast==='1', fixedContentPos: args.fixedContentPos==='auto' ? 'auto':(args.fixedContentPos==='1'), fixedBgPos: args.fixedBgPos==='auto' ? 'auto':(args.fixedBgPos==='1'), image: { titleSrc: function(item){ return item.el.attr('data-rl_title') + '' + item.el.attr('data-rl_caption') + ''; }}, gallery: { enabled: subselector.length > 1&&media_type==='gallery', navigateByImgClick: true, preload: [0,1] }, callbacks: { close: function(){ rl_hide_image(script, this.currItem.src); }, imageLoadComplete: function(){ rl_view_image(script, this.currItem.src); }} }); }); } break; }}); })(jQuery); !function(t){"function"==typeof define&&define.amd?define(["jquery"],t):t("object"==typeof module&&module.exports?require("jquery"):jQuery)}(function(t){function e(t){return t.replace(/(:|\.|\/)/g,"\\$1")}var o="1.6.0",i={},l={exclude:[],excludeWithin:[],offset:0,direction:"top",delegateSelector:null,scrollElement:null,scrollTarget:null,beforeScroll:function(){},afterScroll:function(){},easing:"swing",speed:400,autoCoefficient:2,preventDefault:!0},s=function(e){var o=[],i=!1,l=e.dir&&"left"===e.dir?"scrollLeft":"scrollTop";return this.each(function(){var e=t(this);return this!==document&&this!==window?!document.scrollingElement||this!==document.documentElement&&this!==document.body?void(e[l]()>0?o.push(this):(e[l](1),i=e[l]()>0,i&&o.push(this),e[l](0))):(o.push(document.scrollingElement),!1):void 0}),o.length||this.each(function(){"BODY"===this.nodeName&&(o=[this])}),"first"===e.el&&o.length>1&&(o=[o[0]]),o};t.fn.extend({scrollable:function(t){var e=s.call(this,{dir:t});return this.pushStack(e)},firstScrollable:function(t){var e=s.call(this,{el:"first",dir:t});return this.pushStack(e)},smoothScroll:function(o,i){if(o=o||{},"options"===o)return i?this.each(function(){var e=t(this),o=t.extend(e.data("ssOpts")||{},i);t(this).data("ssOpts",o)}):this.first().data("ssOpts");var l=t.extend({},t.fn.smoothScroll.defaults,o),s=function(o){var i=this,s=t(this),n=t.extend({},l,s.data("ssOpts")||{}),c=l.exclude,a=n.excludeWithin,r=0,h=0,u=!0,d={},p=t.smoothScroll.filterPath(location.pathname),f=t.smoothScroll.filterPath(i.pathname),m=location.hostname===i.hostname||!i.hostname,g=n.scrollTarget||f===p,v=e(i.hash);if(n.scrollTarget||m&&g&&v){for(;u&&r1&&"[object Object]"!==String(e)){if(o=jQuery.extend({},o),(null===e||void 0===e)&&(o.expires=-1),"number"==typeof o.expires){var i=o.expires,l=o.expires=new Date;l.setDate(l.getDate()+i)}return e=String(e),document.cookie=[encodeURIComponent(t),"=",o.raw?e:encodeURIComponent(e),o.expires?"; expires="+o.expires.toUTCString():"",o.path?"; path="+o.path:"",o.domain?"; domain="+o.domain:"",o.secure?"; secure":""].join("")}o=e||{};var s,n=o.raw?function(t){return t}:decodeURIComponent;return(s=new RegExp("(?:^|;)"+encodeURIComponent(t)+"=([^;]*)").exec(document.cookie))?n(s[1]):null},jQuery(document).ready(function(t){if("undefined"!=typeof tocplus){if(t.fn.shrinkTOCWidth=function(){t(this).css({width:"auto",display:"table"}),/MSIE 7\./.test(navigator.userAgent)&&t(this).css("width","")},1==tocplus.smooth_scroll){var e=hostname=pathname=qs=hash=null;t("body a").click(function(){if(hostname=t(this).prop("hostname"),pathname=t(this).prop("pathname"),qs=t(this).prop("search"),hash=t(this).prop("hash"),pathname.length>0&&"/"!=pathname.charAt(0)&&(pathname="/"+pathname),window.location.hostname==hostname&&window.location.pathname==pathname&&window.location.search==qs&&""!==hash){var o=hash.replace(/([ !"$%&'()*+,.\/:;<=>?@[\]^`{|}~])/g,"\\$1");t(o).length>0?e=hash:(anchor=hash,anchor=anchor.replace("#",""),e='a[name="'+anchor+'"]',0==t(e).length&&(e="")),offset="undefined"!=typeof tocplus.smooth_scroll_offset?-1*tocplus.smooth_scroll_offset:t("#wpadminbar").length>0&&t("#wpadminbar").is(":visible")?-30:0,e&&t.smoothScroll({scrollTarget:e,offset:offset})}})}if("undefined"!=typeof tocplus.visibility_show){var o="undefined"!=typeof tocplus.visibility_hide_by_default?!0:!1;if(t.cookie)var i=t.cookie("tocplus_hidetoc")?tocplus.visibility_show:tocplus.visibility_hide;else var i=tocplus.visibility_hide;o&&(i=i==tocplus.visibility_hide?tocplus.visibility_show:tocplus.visibility_hide),t("#toc_container p.toc_title").append(' ['+i+"]"),i==tocplus.visibility_show&&(t("ul.toc_list").hide(),t("#toc_container").addClass("contracted").shrinkTOCWidth()),t("span.toc_toggle a").click(function(e){switch(e.preventDefault(),t(this).html()){case t("
").html(tocplus.visibility_hide).text():t(this).html(tocplus.visibility_show),t.cookie&&(o?t.cookie("tocplus_hidetoc",null,{path:"/"}):t.cookie("tocplus_hidetoc","1",{expires:30,path:"/"})),t("ul.toc_list").hide("fast"),t("#toc_container").addClass("contracted").shrinkTOCWidth();break;case t("
").html(tocplus.visibility_show).text():default:t(this).html(tocplus.visibility_hide),t.cookie&&(o?t.cookie("tocplus_hidetoc","1",{expires:30,path:"/"}):t.cookie("tocplus_hidetoc",null,{path:"/"})),t("#toc_container").css("width",tocplus.width).removeClass("contracted"),t("ul.toc_list").show("fast")}})}}}); (function(){ var is_webkit=navigator.userAgent.toLowerCase().indexOf('webkit') > -1, is_opera=navigator.userAgent.toLowerCase().indexOf('opera') > -1, is_ie=navigator.userAgent.toLowerCase().indexOf('msie') > -1; if(( is_webkit||is_opera||is_ie)&&'undefined'!==typeof(document.getElementById)){ var eventMethod=(window.addEventListener) ? 'addEventListener':'attachEvent'; window[ eventMethod ]('hashchange', function(){ var element=document.getElementById(location.hash.substring(1)); if(element){ if(! /^(?:a|select|input|button|textarea)$/i.test(element.tagName)) element.tabIndex=-1; element.focus(); }}, false); }})(); var addComment={moveForm:function(e,t,n,o){var r,i,d,m=this,l=m.I(e),a=m.I(n),c=m.I("cancel-comment-reply-link"),s=m.I("comment_parent"),e=m.I("comment_post_ID"),p=a.getElementsByTagName("form")[0];if(l&&a&&c&&s&&p){m.respondId=n,o=o||!1,m.I("wp-temp-form-div")||((m=document.createElement("div")).id="wp-temp-form-div",m.style.display="none",a.parentNode.insertBefore(m,a)),l.parentNode.insertBefore(a,l.nextSibling),e&&o&&(e.value=o),s.value=t,c.style.display="",c.onclick=function(){var e=addComment,t=e.I("wp-temp-form-div"),n=e.I(e.respondId);if(t&&n)return e.I("comment_parent").value="0",t.parentNode.insertBefore(n,t),t.parentNode.removeChild(t),this.style.display="none",this.onclick=null,!1};try{for(var f=0;f0&&(s--,n.unobserve(o.target),c(o.target))}}function c(e){var n,o,i,r=t(e);r.length&&(n=r.attr("data-lazy-srcset"),o=r.attr("data-lazy-sizes"),(i=r.clone()).removeAttr("data-lazy-srcset"),i.removeAttr("data-lazy-sizes"),i.removeAttr("data-lazy-src"),i.addClass("jetpack-lazy-image--handled"),i.attr("data-lazy-loaded",1),n?i.attr("srcset",n):i.removeAttr("srcset"),o&&i.attr("sizes",o),r.replaceWith(i),i.trigger("jetpack-lazy-loaded-image"))}t(document).ready(function(){h(),t("body").bind("post-load",h),t("body").bind("jetpack-lazy-images-load",h)})}; !function(t,e){"use strict";if("IntersectionObserver"in t&&"IntersectionObserverEntry"in t&&"intersectionRatio"in t.IntersectionObserverEntry.prototype)"isIntersecting"in t.IntersectionObserverEntry.prototype||Object.defineProperty(t.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return this.intersectionRatio>0}});else{var n=[];i.prototype.THROTTLE_TIMEOUT=100,i.prototype.POLL_INTERVAL=null,i.prototype.USE_MUTATION_OBSERVER=!0,i.prototype.observe=function(t){if(!this._observationTargets.some(function(e){return e.element==t})){if(!t||1!=t.nodeType)throw new Error("target must be an Element");this._registerInstance(),this._observationTargets.push({element:t,entry:null}),this._monitorIntersections(),this._checkForIntersections()}},i.prototype.unobserve=function(t){this._observationTargets=this._observationTargets.filter(function(e){return e.element!=t}),this._observationTargets.length||(this._unmonitorIntersections(),this._unregisterInstance())},i.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorIntersections(),this._unregisterInstance()},i.prototype.takeRecords=function(){var t=this._queuedEntries.slice();return this._queuedEntries=[],t},i.prototype._initThresholds=function(t){var e=t||[0];return Array.isArray(e)||(e=[e]),e.sort().filter(function(t,e,n){if("number"!=typeof t||isNaN(t)||t<0||t>1)throw new Error("threshold must be a number between 0 and 1 inclusively");return t!==n[e-1]})},i.prototype._parseRootMargin=function(t){var e=(t||"0px").split(/\s+/).map(function(t){var e=/^(-?\d*\.?\d+)(px|%)$/.exec(t);if(!e)throw new Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(e[1]),unit:e[2]}});return e[1]=e[1]||e[0],e[2]=e[2]||e[0],e[3]=e[3]||e[1],e},i.prototype._monitorIntersections=function(){this._monitoringIntersections||(this._monitoringIntersections=!0,this.POLL_INTERVAL?this._monitoringInterval=setInterval(this._checkForIntersections,this.POLL_INTERVAL):(r(t,"resize",this._checkForIntersections,!0),r(e,"scroll",this._checkForIntersections,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in t&&(this._domObserver=new MutationObserver(this._checkForIntersections),this._domObserver.observe(e,{attributes:!0,childList:!0,characterData:!0,subtree:!0}))))},i.prototype._unmonitorIntersections=function(){this._monitoringIntersections&&(this._monitoringIntersections=!1,clearInterval(this._monitoringInterval),this._monitoringInterval=null,s(t,"resize",this._checkForIntersections,!0),s(e,"scroll",this._checkForIntersections,!0),this._domObserver&&(this._domObserver.disconnect(),this._domObserver=null))},i.prototype._checkForIntersections=function(){var e=this._rootIsInDom(),n=e?this._getRootRect():{top:0,bottom:0,left:0,right:0,width:0,height:0};this._observationTargets.forEach(function(i){var r=i.element,s=h(r),a=this._rootContainsTarget(r),c=i.entry,u=e&&a&&this._computeTargetAndRootIntersection(r,n),l=i.entry=new o({time:t.performance&&performance.now&&performance.now(),target:r,boundingClientRect:s,rootBounds:n,intersectionRect:u});c?e&&a?this._hasCrossedThreshold(c,l)&&this._queuedEntries.push(l):c&&c.isIntersecting&&this._queuedEntries.push(l):this._queuedEntries.push(l)},this),this._queuedEntries.length&&this._callback(this.takeRecords(),this)},i.prototype._computeTargetAndRootIntersection=function(n,o){if("none"!=t.getComputedStyle(n).display){for(var i,r,s,a,u,l,d,p,g=h(n),f=c(n),v=!1;!v;){var m=null,_=1==f.nodeType?t.getComputedStyle(f):{};if("none"==_.display)return;if(f==this.root||f==e?(v=!0,m=o):f!=e.body&&f!=e.documentElement&&"visible"!=_.overflow&&(m=h(f)),m&&(i=m,r=g,s=void 0,a=void 0,u=void 0,l=void 0,d=void 0,p=void 0,s=Math.max(i.top,r.top),a=Math.min(i.bottom,r.bottom),u=Math.max(i.left,r.left),l=Math.min(i.right,r.right),p=a-s,!(g=(d=l-u)>=0&&p>=0&&{top:s,bottom:a,left:u,right:l,width:d,height:p})))break;f=c(f)}return g}},i.prototype._getRootRect=function(){var t;if(this.root)t=h(this.root);else{var n=e.documentElement,o=e.body;t={top:0,left:0,right:n.clientWidth||o.clientWidth,width:n.clientWidth||o.clientWidth,bottom:n.clientHeight||o.clientHeight,height:n.clientHeight||o.clientHeight}}return this._expandRectByRootMargin(t)},i.prototype._expandRectByRootMargin=function(t){var e=this._rootMarginValues.map(function(e,n){return"px"==e.unit?e.value:e.value*(n%2?t.width:t.height)/100}),n={top:t.top-e[0],right:t.right+e[1],bottom:t.bottom+e[2],left:t.left-e[3]};return n.width=n.right-n.left,n.height=n.bottom-n.top,n},i.prototype._hasCrossedThreshold=function(t,e){var n=t&&t.isIntersecting?t.intersectionRatio||0:-1,o=e.isIntersecting?e.intersectionRatio||0:-1;if(n!==o)for(var i=0;i 0){ children[0].appendChild(ak_js); }} };